<template>
  <el-container>
    <el-header>
      <gall-header></gall-header>
    </el-header>
    <el-container>
      <!-- <el-aside>
        <gall-menu></gall-menu>
      </el-aside> -->
      <el-main class="gall-el-main">
        <router-view> </router-view>
      </el-main>
    </el-container>
  </el-container>
</template>
<script setup>
import { GallHeader, GallMenu } from "@/layout";
import { useRouter } from "vue-router";
import { onMounted } from "vue";
import cache from "@/utils/cache";
const router = useRouter();
onMounted(() => {
  console.log(cache.local.get("isLogin"));
  if (!cache.local.get("isLogin")) {
    router.push("/login");
  }
});
</script>
<style scoped></style>
<style>
.el-header {
  height: 48px !important;
}
.el-aside {
  width: 208px !important;
}
</style>
